<?php
/* [DoYouHaoBaby!] (C)Dianniu From 2010.
   this($)*/

!defined('DYHB_PATH') && exit;

class TemplateGtkGladeWidgetChild extends TemplateGtkGladeWidget{

	private $_theWidget;
	private $_oPacking;

	public function __construct(TemplateGtkGladeWidget $oWidget,TemplateGtkGladeWidgetPacking $oPacking){
		$this->_theWidget=$oWidget;
		$this->_oPacking=$oPacking;
	}

	public function getWidget(){
		return $this->_theWidget; 
	}

	public function getPacking(){ 
		return $this->_oPacking; 
	}

	public function getWidgetClass(){ 
		return call_user_func(array($this->_theWidget,'getWidgetClass'));
	}

	public function getWidgetId(){ 
		return call_user_func(array($this->_theWidget,'getWidgetId'));
	}

	public function addChildWidget(TemplateGtkGladeWidget $oWidget,TemplateGtkGladeWidgetPacking $oPacking){ 
		return call_user_func_array(array($this->_theWidget,'addChildWidget'),func_get_args());
	}

	public function createChildWidgetIterator(){
		return call_user_func(array($this->_theWidget,'createChildWidgetIterator'));
	}

	public function clearChildWidget(){ 
		return call_user_func(array($this->_theWidget,'clearChildWidget'));
	}

	public function addProperty(TemplateGtkGladeWidgetProperty $oProperty){ 
		return call_user_func_array(array($this->_theWidget,'addProperty'),func_get_args());
	}

	public function clearProperty(){
		return call_user_func(array($this->_theWidget,'clearProperty'));
	}

	public function getProperty($sPropertyName,$sWhat=''){ 
		return call_user_func_array(array($this->_theWidget,'getProperty'),func_get_args());
	}

}
